package cn.zhouchao.basic.controller;

import cn.zhouchao.basic.service.IEchartService;
import cn.zhouchao.basic.vo.EchartVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.Map;

@RestController
@RequestMapping("/echart")
public class EchartController {

    @Autowired
    private IEchartService echartService;
    @GetMapping
    public Map<String,Object> Echart() throws IOException {
        return echartService.echart();
    }
}
